package com.xbongbong.paas.pojo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * paas_permissions 中定位表单权限
 * @author kaka
 * @time 2018-9-12
 */
@Setter
@Getter
@ToString
public class FormPermsPojo implements Serializable {

    private static final long serialVersionUID = 278559394672774101L;

    /**
     * 应用id
     */
    private Long appId;

    /**
     * 表单对应的菜单id
     */
    private Long formId;

    /**
     * 操作权限
     */
    private OpPermsPojo opPermsPojo;

    /**
     * 数据权限
     */
    private Integer dataPerms;

    public FormPermsPojo() {
        this.opPermsPojo = new OpPermsPojo();
        // 默认数据权限为仅自己
        this.dataPerms = 1;
    }
}
